package com.wf.smartcomm.server.service;


import java.util.List;

import com.wf.smartcomm.server.bean.House;
import com.wf.smartcomm.server.bean.UnitMachine;
import com.wf.smartcomm.server.bean.User;
import com.wf.smartcomm.server.bean.Village;
import com.wf.smartcomm.server.model.Page;

/** 
 * @author 38884306@qq.com  
 * @version 创建时间：2015-5-20 下午7:52:33 
 * 
 */
public interface UnitMachService {
	public void save(UnitMachine machine);
	public void listByVillage(Village village,Page page);
	public void list(Page page);
	public void listByHouse(House house,Page page);
	public UnitMachine getByHardId(String id);
	public UnitMachine getByUser(User user);
	public void queryByKey(Village village,String key,Page page);
	public UnitMachine getById(String mid);
	public void listByHid(String hid,Page page);
	public void update(UnitMachine um);
	public void report(UnitMachine um);
	public void offLine(UnitMachine um);
	public void delete(UnitMachine um);
	public void counts(Village loginVillage, Page page);
	public void saveHouseRelation(UnitMachine paramUnitMachine, List<House> paramList);
	public void listAllByVillage(Village village, Page page);
	public List<UnitMachine> listAllByVillage(Village village);
	public void listAll(Page page);
	public List<UnitMachine> listCenterMachine();
	public List<UnitMachine> listOffLineMachine();
	public void listByAddress(String objectId, String region, String building,
			String entrance, Page page);
	public UnitMachine getByVoip(String voipAccount);
	public List<UnitMachine> listOffLineMachine(Village village);
	public void listAllUn(Page page);
	public void delete(String id);
	UnitMachine getByLandVoip(String voipAccount);
	public List<UnitMachine> listByUpdate(Village village,String type,Integer screenSize);
}
